const subConfig = require("./sub.config");
const { assrt, shooter } = subConfig;
module.exports = {
  devServer: {
    proxy: {
      //配置跨域
      "/assrt": {
        target: assrt.apiUrl,
        changOrigin: true,
        pathRewrite: {
          "^/assrt": "",
        },
      },
      "/shooter": {
        target: shooter.apiUrl,
        changOrigin: true,
        pathRewrite: {
          "^/shooter": "",
        },
      },
    },
  },
};
